﻿using AutoMapper;
using Finance.API.Write.Application.Command.FinancialCategoryCommand;
using Finance.API.Write.Application.Command.PayableManagementCommand;
using Finance.API.Write.Application.Command.ReceivablesManagementCommand;
using Finance.API.Write.Application.Hander.FinancialCategoryHander;
using Finance.API.Write.Application.Hander.PayableManagementHander;
using Finance.API.Write.Application.Hander.ReceivablesManagementHander;
using Finance.Domain;

namespace Finance.API.Write
{
    public class MyautoMapper : Profile
    {
        public MyautoMapper()
        {
            CreateMap<AddFinancialCategoryCommand, FinancialCategory>().ReverseMap();
            CreateMap<UpdFinancialCategoryCommand, FinancialCategory>().ReverseMap();
            CreateMap<AddPayableManagementCommand, PayableManagement>().ReverseMap();
            CreateMap<UpdPayableManagementCommand, PayableManagement>().ReverseMap();
            CreateMap<AddReceivablesManagementCommand, ReceivablesManagement>().ReverseMap();
            CreateMap<UpdReceivablesManagementCommand, ReceivablesManagement>().ReverseMap();
        }
    }
}
